$("#fileupload").fileupload({  
   method:'post',  
   url:"photos/upload", 
   done:function(e,result){  
       console.log(JSON.stringify(result.result));  
   }
})